﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureDriveExplorer
{
    public class Constant
    {

        public static string FileConfig="AccauntConfig.config";
        public static string Azure = "Azure";
        public static string Percent = "%";
        public static string Pont = ".";
        public static char PontChar = '.';

        public static string key()
        {
            string key = string.Empty;

            string customSetting = System.Configuration.ConfigurationSettings.AppSettings["Credential"].ToString();                
                if (null != customSetting)
                    key = customSetting;

            return key;
        }

        public string idioma(int language,int numMsg)
        {
            //日本語
            //Inglish
            //Espaniol

            string[] Japanese = new string[250];
            string[] Inglish = new string[250];
            string[] Estaniol = new string[250];

            string msg = string.Empty;

            
           
            Japanese[1]="設定ファイルが読めません";
            Inglish[1]="The setting file could not be read";
            Estaniol[1]="El archivo de configuracion no pudo ser leido";

            Japanese[2]="リストの行を選択してください";
            Inglish[2]="Select a line in the list";
            Estaniol[2]="Seleccione ruglo de la lista";

            //Account.cs Controls Name
            Japanese[100] = "設定";
            Inglish[100] = "Settings";
            Estaniol[100] = "Administracion";

            Japanese[101] = "アカウント名";
            Inglish[101] = "Account Name";
            Estaniol[101] = "Nombre Cuenta";

            Japanese[102] = "アクセスキー";
            Inglish[102] = "Account Key";
            Estaniol[102] = "Key Cuenta";

            Japanese[103] = "コンテナー名前";
            Inglish[103] = "Container Name";
            Estaniol[103] = "Nombre Contenedor";

            Japanese[104] = "VHD名";
            Inglish[104] = "VHD Name";
            Estaniol[104] = "VHD Nombre";

            Japanese[105] = "新規";
            Inglish[105] = "New Line";
            Estaniol[105] = "Nuevo";

            Japanese[106] = "保存";
            Inglish[106] = "Save";
            Estaniol[106] = "Salvar";

            Japanese[107] = "クリア";
            Inglish[107] = "Clear";
            Estaniol[107] = "Limpiar";

            Japanese[108] = "削除";
            Inglish[108] = "Delete";
            Estaniol[108] = "Borrar";

            Japanese[109] = "VHD作成";
            Inglish[109] = "Create VHD";
            Estaniol[109] = "Crear VHD";

            Japanese[110] = "VHD削除";
            Inglish[110] = "Delete VHD";
            Estaniol[110] = "Borrar VHD";

            Japanese[111] = "VHDアップロード";
            Inglish[111] = "Upload VHD";
            Estaniol[111] = "Subir VHD";

            Japanese[112] = "ファイル";
            Inglish[112] = "File";
            Estaniol[112] = "Archivo";

            Japanese[113] = "接続";
            Inglish[113] = "Connect";
            Estaniol[113] = "Conectar";

            Japanese[114] = "ストレージ";
            Inglish[114] = "Storage";
            Estaniol[114] = "Storage";

            
            Japanese[121] = "準備中";
            Inglish[121] = "preparing";
            Estaniol[121] = "Preparando";

            Japanese[122] = "しばらくお待ちください";
            Inglish[122] = "please wait";
            Estaniol[122] = "Espere un momento";

            Japanese[123] = "ダウンロード中";
            Inglish[123] = "Downloading ";
            Estaniol[123] = "Descargando ";

            Japanese[124] = "ダウンロードできませんでした、もう一度してください";
            Inglish[124] = "Cant Download, please tray again ";
            Estaniol[124] = "La descarga no se completo, intente de nuevo";

            Japanese[125] = "ダウンロードできました　";
            Inglish[125] = "Download completed ";
            Estaniol[125] = "Archivo descargado　";

            Japanese[126] = " パッズができません　";
            Inglish[126] = " is not a valid file or directory. ";
            Estaniol[126] = " no es un directorio valido　";

            Japanese[127] = " Azureのほうにフォルダだけ作ります　";
            Inglish[127] = "You can only create folder in Azure";
            Estaniol[127] = " Solo puedes crear un folder en Azure　";
            
            Japanese[128] = " アウトパッズを選んでください　";
            Inglish[128] = "Select a Outpath";
            Estaniol[128] = "Seleccione una ruta de salida";
            
            Japanese[129] = " Null \\ < > : * ? \" | 書けません　";
            Inglish[129] = "Null \\ < > : * ? \" | is not permited";
            Estaniol[129] = "Null \\ < > : * ? \" |　no es permitido";

            Japanese[130] = " フォルダの名前もあります、他の名前を選んでください　";
            Inglish[130] = "The Name Folder Already Exist";
            Estaniol[130] = "　El folder ya exciste";
            
            Japanese[131] = " エラー：　";
            Inglish[131] = "Error: ";
            Estaniol[131] = "　Error: ";

            Japanese[132] = " 作りました ";
            Inglish[132] = "Created ";
            Estaniol[132] = "　Creado ";

            Japanese[133] = " azureのなかにフォルダを選んでください ";
            Inglish[133] = "Select a Folder Azure";
            Estaniol[133] = "　Seleccione un folder de Azure ";

            Japanese[134] = " フォルダがありません ";
            Inglish[134] = "The Folder not exist";
            Estaniol[134] = "　El folder no exciste ";

            Japanese[135] = " 削除できました ";
            Inglish[135] = "Deleted";
            Estaniol[135] = "　Borrado ";

            Japanese[136] = " エラー：　「";
            Inglish[136] = "Error: [";
            Estaniol[136] = "　Error: [";

            Japanese[137] = " ファイルを削除できませんでした";
            Inglish[137] = " Can not deleted file";
            Estaniol[137] = "　no se pudo eliminar el archivo";

            Japanese[138] = "ファイルをセレックとVHDの名前を書いてください";
            Inglish[138] = "Select File and Insert VHD Name";
            Estaniol[138] = "Seleccione Archivo e inserte nombre del VHD";

            Japanese[139] = "アブロードができました";
            Inglish[139] = "Upload complete";
            Estaniol[139] = "Se completo la subida de archivo";
            
            Japanese[140] = "本当に削除したいですか";
            Inglish[140] = "Are you sure to delete the record?";
            Estaniol[140] = "Esta seguro de eliminar el registro?";
            
            Japanese[141] = "アカウント名前とキーを書いてください";
            Inglish[141] = "Insert Account name and key";
            Estaniol[141] = "Ingresa Nombre de la cuenta y Key";
            
            Japanese[142] = "リストの中でVHDを選んでください";
            Inglish[142] = "Select one VHD for delete";
            Estaniol[142] = "Seleccione un VHD para eliminar";

            Japanese[143] = "VHDを削除したいですか";
            Inglish[143] = "Are you sure delete the VHD?";
            Estaniol[143] = "Estas seguro de eliminar el VHD?";

            Japanese[144] = Japanese[101] + "と" + Japanese[102] + "と" + Japanese[103] + "と" + Japanese[104]+"が必要です";
            Inglish[144] = Inglish[101] + ", " + Inglish[102] + ", " + Inglish[103] + " and " + Inglish[104] + " is necessary";
            Estaniol[144] = Estaniol[101] + ", " + Estaniol[102] + ", " + Estaniol[103] + " y " + Estaniol[104] + " es nesesario";


            Japanese[145] = "フォルダ";
            Inglish[145] = "Select Folder";
            Estaniol[145] = "Seleccione un folder";

            Japanese[146] = "ダウンロード";
            Inglish[146] = "Donwload";
            Estaniol[146] = "Descargar";

            //Contrl Form1


            Japanese[150] = "Azure Drive Explorer";
            Inglish[150] = "Azure Drive Explorer";
            Estaniol[150] = "Azure Drive Explorer";

            Japanese[151] = "フォルダを作る";
            Inglish[151] = "Create Folder";
            Estaniol[151] = "Crear Folder";

            Japanese[152] = "ファイルを削除";
            Inglish[152] = "Delete File";
            Estaniol[152] = "Borrar Archivo";

            Japanese[153] = "フォルダを削除";
            Inglish[153] = "Delete Folder";
            Estaniol[153] = "Borrar Folder";

            Japanese[154] = "言語";
            Inglish[154] = "Language";
            Estaniol[154] = "Idioma";
         
            Japanese[155] = "設定";
            Inglish[155] = "Settings";
            Estaniol[155] = "Administracion";


            Japanese[156] = "AzureからパソコンまでかパソコンからAzureまでにできます";
            Inglish[156] = "Only Azure to Hard Disk or Hard Disk to Azure";
            Estaniol[156] = "Solamente Azure a Local o Local a Azure ";

            Japanese[157] = "表示";
            Inglish[157] = "View";
            Estaniol[157] = "Vista";

            Japanese[158] = "並べて表示";
            Inglish[158] = "List";
            Estaniol[158] = "Lista";
            
            Japanese[159] = "一覧";
            Inglish[159] = "Normal";
            Estaniol[159] = "Normal";

            Japanese[160] = "本当に削除したいですか";
            Inglish[160] = "Are you sure to delete this file?";
            Estaniol[160] = "Esta seguro de eliminar esto(s) archivos?";

            Japanese[161] = "本当に削除したいですか";
            Inglish[161] = "Are you sure to delete this folder?";
            Estaniol[161] = "Esta seguro de eliminar este folder?";
            
            //CreateFolder.cs Controls Name
            Japanese[201] = "OK";
            Inglish[201] = "OK";
            Estaniol[201] = "OK";

            Japanese[202] = "キャンセル";
            Inglish[202] = "Cancel";
            Estaniol[202] = "Cancelar";

            Japanese[203] = "名前";
            Inglish[203] = "Name";
            Estaniol[203] = "Nombre";

            switch (language)
            {
                case 1: msg = Japanese[numMsg]; break;
                case 2: msg = Estaniol[numMsg]; break;
                default: msg = Inglish[numMsg]; break;
            }
            return msg;

        }
    }


}
